<template>
  <BaseMessage
    v-model="messageState.visible"
    :options="messageState.options"
    @close="handleClose"
  />
</template>

<script setup lang="ts">
import BaseMessage from './BaseMessage.vue';
import { messageState, closeMessage } from '@/utils/message';

const handleClose = () => {
  closeMessage();
};
</script> 